package com.example.album;

import jakarta.persistence.*;

@Entity
@Table(name = "categories")
public class Category {
    @Id
    @Column(name = "category_id", length = 16)
    private String categoryId;

    @Column(name = "category_name", length = 30, nullable = false)
    private String categoryName;

    @Column(name = "create_by", length = 16)
    private String createBy;

    // getter/setter
    public String getCategoryId() { return categoryId; }
    public void setCategoryId(String categoryId) { this.categoryId = categoryId; }
    public String getCategoryName() { return categoryName; }
    public void setCategoryName(String categoryName) { this.categoryName = categoryName; }
    public String getCreateBy() { return createBy; }
    public void setCreateBy(String createBy) { this.createBy = createBy; }
}
